#include <stdio.h>

#define N 5

void add_arry(int n, double source1[n], double source2[n], double target[n]);

void show(int n, double array[n]);

int main() {
    double source1[N] = {1.0, 2.0,   3.0,  4.0,  5.0};
    double source2[N] = {11.0, 12.0, 13.0, 14.0, 15.0};
    double target[N];
    add_arry(N, source1, source2, target);
    show(N, source1);
    show(N, source2);
    show(N, target);
    return 1;
}

void add_arry(int n, double source1[n], double source2[n], double target[n]) {
    for (int j = 0; j < n; ++j) {
        target[j] = source1[j] + source2[j];
    }
}

void show(int n, double array[n]) {
    for (int j = 0; j < n; ++j) {
        printf("%.2f\t", array[j]);
    }
    printf("\n");
}
